package com.yh.services.impl;

import com.yh.dao.UserMapper;
import com.yh.entity.User;
import com.yh.services.IUserService;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;
@Service
@Getter
@Setter
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByName(String name) {
        return userMapper.getUserByName(name);
    }

    @Override
    public Set<String> getRoles(String name) {
        return userMapper.getRoles(name);
    }

    @Override
    public Set<String> getPerms(String name) {
        return userMapper.getPerms(name);
    }
}
